import i18next from 'i18next'
const { t } = i18next

export const ELEMENT_TYPE = () => ({
  text: t('elementType.text'),
  image: t('elementType.image'),
  shape: t('elementType.shape'),
  line: t('elementType.line'),
  chart: t('elementType.chart'),
  table: t('elementType.table'),
  video: t('elementType.video'),
  audio: t('elementType.audio'),
  latex: t('elementType.latex'),
  frame: t('elementType.frame'),
  document: t('elementType.document'),
})

export const MIN_SIZE: { [key: string]: number } = {
  text: 20,
  image: 20,
  shape: 20,
  chart: 200,
  table: 20,
  video: 250,
  audio: 20,
  latex: 20,
  frame: 200,
  document: 400
}